<?php
// $hoy = time ();
// echo $hoy;
echo "Día: ";
fscanf ( STDIN, "%d\n", $dia );

echo "mes: ";
fscanf ( STDIN, "%d\n", $mes );

echo "Año: ";

/*
 * $fechaIntroducida = mktime ( 0, 0, 0, $mes, $dia, $a�o ); $sol = $hoy - $fechaIntroducida; $a�os = ($sol / (3600 * 24 * 365)); $sol -= ($a�os * 3600 * 24 * 365); $meses = ( int ) ($sol / (3600 * 24 * 30)); $sol -= $meses * (3600 * 24 * 30); $dias = ( int ) ($sol / (3600 * 24)); $sol -= $dias * (3600 * 24); $horas = ( int ) ($sol / (3600)); $sol -= $horas * 3600; $minutos = ( int ) ($sol / 60); $sol -= $minutos * 60; $segundos = $sol;
 */
/*
 * const sMinuto = 60; const sHora = 3600; const sDia = 86400; const sMes = 2592000; const sA�o = 31536000;
 */

$sol = time () - strtotime ( "$a�o/$mes/$dia" );

echo $sol;

// echo "Han transcurrido ".round($a�os)." a�os, $meses meses, $dias dias, $horas horas, $minutos minutos, $segundos segundos";

?>